import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var menuType = blobType.menuType
var fywflcodeArr = blobType.fywflcodeArr
var fywflcode = ''
//根据Id查询
// export function queryJobByJobIdServe(params){
//     fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
//     return axios({
//       url: assessCheckApi.queryJobByJobId,
//       method:'get' ,
//       params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
//       url_1:'outside'
//     })
// }

// //获取编码




//   export function spcyGetJobConcernByJobId(params){
//     fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
//     return axios({
//       url: assessCheckApi.spcyGetJobConcernByJobId,
//       method:'get' ,
//       params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
//       url_1:'outside'
//     })
//   }

export function partyXxzlsaveLjxczl(params){
  return axios({
    url: assessCheckApi.partyXxzlsaveLjxczl,
    method:'post',
    data:params,
    url_1:'outside'
  })
}

export function partyXxzldeleteXxzl(params){
    return axios({
      url: assessCheckApi.partyXxzldeleteXxzl,
      method:'delete' ,
      params:params,
      url_1:'outside'
    })
  }
  export function partyXxzlreleaseXXzl(params){
    return axios({
      url: assessCheckApi.partyXxzlreleaseXXzl,
      method:'get',
      params:params,
      url_1:'outside'
    })
  }
  export function partyXxzlxjXxzl(params){
    return axios({
      url: assessCheckApi.partyXxzlxjXxzl,
      method:'get',
      params:params,
      url_1:'outside'
    })
  }
  export function partyXxzlqueryXxzlFjList(params){

    return axios({
      url: assessCheckApi.partyXxzlqueryXxzlFjList,
      method:'get',
      params:params,
      url_1:'outside'
    })
  }
  
  export function partyXxzluploadFile(params){
    return axios({
      url: assessCheckApi.partyXxzluploadFile,
      method:'post',
      data:params,
      url_1:'outside'
    })
  }
  export function partyXxzldeleteFile(params){
    return axios({
      url: assessCheckApi.partyXxzldeleteFile,
      method:'delete' ,
      params:params,
      url_1:'outside'
    })
  }
  export function partyXxzldownFile(params){
    return axios({
      url: assessCheckApi.partyXxzldownFile,
      method:'get',
      params:params,
      url_1:'outside',
      responseType: 'arraybuffer'
    })
  }

